package org.csu.pet_store_2.Service.impl;

import com.alipay.api.AlipayApiException;

import org.csu.pet_store_2.Domain.AlipayBean;
import org.csu.pet_store_2.Service.IPayService;
import org.csu.pet_store_2.Util.AlipayUtile;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


@Service
public class PayServiceImpl implements IPayService
{

    @Autowired
    private AlipayUtile alipayUtile;

    @Override
    public String aliPay(AlipayBean alipayBean) throws AlipayApiException {
        return alipayUtile.pay(alipayBean);
    }

}
